﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Models;
using System.Data.SqlClient;


namespace DAL
{
   public class dateService
    {
        public SqlDataReader selectyear()
        {
            string sql = "select * from Year";
            return DBhelper.DataReader(sql);
        }
        public SqlDataReader selectmonth()
        {
            string sql = "select * from Month";
            return DBhelper.DataReader(sql);
        }
        public SqlDataReader selectday()
        {
            string sql = "select * from Day";
            return DBhelper.DataReader(sql);
        }

        public SqlDataReader selectdaya()
        {
            string sql = "select top 28* from Day";
            return DBhelper.DataReader(sql);
        }

        public SqlDataReader selectdayb()
        {
            string sql = "select top 30* from Day";
            return DBhelper.DataReader(sql);
        }

        public SqlDataReader selectdayc()
        {
            string sql = "select top 31* from Day";
            return DBhelper.DataReader(sql);
        }
    }
}
